package com.zingrow.web.configure.channel.service;

import java.io.File;
import java.util.List;

import com.zingrow.common.utils.PageView;
import com.zingrow.web.common.utils.AnalyzeResult;
import com.zingrow.web.configure.channel.model.Channel;

public interface IChannelService {

	//模糊查询
	public abstract List<Channel> queryByParams(PageView pageView,
			String channel_url, String channel_name, String channel_type,Integer is_exprot);

	//新增
	public abstract boolean addChannel(Channel channel);
	
	/**
     * 批量删除
     */	
	public abstract boolean batchDeletes(List delList);

	//修改
	public abstract boolean modifyChannel(Channel channel);

	//删除
	public abstract boolean deleteChnnel(Integer channel_id);

	//查询同名
	public abstract boolean queryByName(Integer channel_id,
			String channel_url, String channel_name);
	//单个查询
	public abstract Channel queryById(Integer channel_id);
	
	//查询全部的接口
	public abstract List<Channel> queryByIdName(PageView pageView);
	
	//根据list集合中的id查询接口
	public abstract List<Channel> queryChannelByIdlist(List<String> idlist);
	
	//导出
	List<Channel> queryChannelbyid(List<Integer> ids);

	
	//新方案通过类别查询频道名称信息
    List<Channel> queryChannelByType(PageView pageView,String channel_type,String channel_name);

	
	//导入
	void analyzeExcelData(File file,AnalyzeResult<Channel> result)throws Exception;
	
	boolean modifyDisplay(int displary,List<String> displaylist);
	
}